import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule ,ReactiveFormsModule  } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzMenuModule } from 'ng-zorro-antd/menu';


import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb';

import { NzGridModule } from 'ng-zorro-antd/grid';


import { NzInputModule } from 'ng-zorro-antd/input';
import { NzButtonModule } from 'ng-zorro-antd/button';

import { NzRadioModule } from 'ng-zorro-antd/radio';
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
import { NzSelectModule } from 'ng-zorro-antd/select';
import { NzUploadModule } from 'ng-zorro-antd/upload';

import { NzFormModule } from 'ng-zorro-antd/form';
import { NzPaginationModule } from 'ng-zorro-antd/pagination';
// 引入tree组件
import { NzTreeModule } from 'ng-zorro-antd/tree'
import { NzCardModule } from 'ng-zorro-antd/card';

import { NzTableModule } from 'ng-zorro-antd/table';
import { NzDividerModule } from 'ng-zorro-antd/divider';

import { NzMessageModule } from 'ng-zorro-antd/message';

import { NzModalModule } from 'ng-zorro-antd/modal';
import {TableToFormComponent} from "./table-to-form/table-to-form.component";
import {NzIconModule} from "ng-zorro-antd/icon";
import { NzSpinModule } from 'ng-zorro-antd/spin';
import { NzAlertModule } from 'ng-zorro-antd/alert';

registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    TableToFormComponent

  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzLayoutModule,
    NzMenuModule,
    NzBreadCrumbModule,
    NzGridModule,
    NzInputModule,
    NzButtonModule,
    NzRadioModule,
    NzCheckboxModule,
    NzDatePickerModule,
    NzSelectModule,
    NzUploadModule,
    NzFormModule,
    NzTreeModule,
    NzFormModule,
    ReactiveFormsModule,
    NzCardModule,
    NzTableModule,
    NzDividerModule,
    NzPaginationModule,
    NzMessageModule,
    NzModalModule,
    NzIconModule,
    NzSpinModule,
    NzAlertModule,


  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent]
})
export class AppModule { }
